vectorLength(vector)
vectorCrossProduct(a, b)
angleBetweenVectors(v1, v2)
resolveVector(len, ...)
vectorLength
, the Euclidean norm or length of the specified vector, given by sqrt(sum(vector^2))
. For vectorCrossProduct
, the vector cross product of the two specified vectors; and for angleBetweenVectors
, the angle (in radians) between the two specified vectors.The resolveVector
function concatenates the values given in ...
, and if the result is a vector of length len
then it is returned. If not, NULL
is returned.
J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18.
crossprod
for the matrix cross product.